.class public Lcom/example/m6wmr/ChangeCodeActivity;
.super Landroid/app/Activity;
.source "ChangeCodeActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;
    }
.end annotation


# instance fields
.field private activities:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/app/Activity;",
            ">;"
        }
    .end annotation
.end field

.field private closebtn:Landroid/widget/LinearLayout;

.field private context:Landroid/content/Context;

.field private et_new_code:Landroid/widget/EditText;

.field private et_now_code:Landroid/widget/EditText;

.field private et_overcode:Landroid/widget/EditText;

.field private gethttpsString:Ljava/lang/String;

.field private h:Landroid/os/Handler;

.field private m:Lmyapp/MyApp;

.field private newcode:Ljava/lang/String;

.field private nowcode:Ljava/lang/String;

.field private overcode:Ljava/lang/String;

.field private tv_change_suer:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 31
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ChangeCodeActivity;)Z
    .locals 1

    .prologue
    .line 234
    invoke-direct {p0}, Lcom/example/m6wmr/ChangeCodeActivity;->isNull()Z

    move-result v0

    return v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ChangeCodeActivity;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 35
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6wmr/ChangeCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->nowcode:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/ChangeCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->newcode:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$4(Lcom/example/m6wmr/ChangeCodeActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 50
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->overcode:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/ChangeCodeActivity;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 37
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/ChangeCodeActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 34
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->context:Landroid/content/Context;

    return-object v0
.end method

.method private initData()V
    .locals 1

    .prologue
    .line 125
    iput-object p0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->context:Landroid/content/Context;

    .line 126
    invoke-virtual {p0}, Lcom/example/m6wmr/ChangeCodeActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->m:Lmyapp/MyApp;

    .line 127
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->activities:Ljava/util/List;

    .line 128
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->activities:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 131
    return-void
.end method

.method private initView()V
    .locals 1

    .prologue
    .line 58
    const v0, 0x7f0c0001

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ChangeCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->closebtn:Landroid/widget/LinearLayout;

    .line 59
    const v0, 0x7f0c0002

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ChangeCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->et_now_code:Landroid/widget/EditText;

    .line 60
    const v0, 0x7f0c0003

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ChangeCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->et_new_code:Landroid/widget/EditText;

    .line 61
    const v0, 0x7f0c0004

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ChangeCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->et_overcode:Landroid/widget/EditText;

    .line 63
    const v0, 0x7f0c0005

    invoke-virtual {p0, v0}, Lcom/example/m6wmr/ChangeCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->tv_change_suer:Landroid/widget/TextView;

    .line 65
    return-void
.end method

.method private isNull()Z
    .locals 4

    .prologue
    const/4 v0, 0x0

    .line 237
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->et_now_code:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, "%"

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, " "

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->nowcode:Ljava/lang/String;

    .line 238
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->et_new_code:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, "%"

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, " "

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->newcode:Ljava/lang/String;

    .line 239
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->et_overcode:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    const-string v2, "%"

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const-string v2, " "

    const-string v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->overcode:Ljava/lang/String;

    .line 241
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->nowcode:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 242
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->context:Landroid/content/Context;

    const-string v2, "\u63d0\u793a\u4fe1\u606f"

    const-string v3, "\u5f53\u524d\u5bc6\u4e3a\u7a7a"

    invoke-static {v1, v2, v3}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 270
    :goto_0
    return v0

    .line 248
    :cond_0
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->newcode:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 249
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->context:Landroid/content/Context;

    const-string v2, "\u63d0\u793a\u4fe1\u606f"

    const-string v3, "\u65b0\u5bc6\u7801\u4e3a\u7a7a"

    invoke-static {v1, v2, v3}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 253
    :cond_1
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->newcode:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    const/4 v2, 0x6

    if-ge v1, v2, :cond_2

    .line 254
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->context:Landroid/content/Context;

    const-string v2, "\u63d0\u793a\u4fe1\u606f"

    const-string v3, "\u5bc6\u7801\u5c0f\u4e8e6\u4f4d\u6570"

    invoke-static {v1, v2, v3}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 258
    :cond_2
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->newcode:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0x20

    if-le v1, v2, :cond_3

    .line 259
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->context:Landroid/content/Context;

    const-string v2, "\u63d0\u793a\u4fe1\u606f"

    const-string v3, "\u5bc6\u7801\u5c0f\u4e8e6\u4f4d\u6570"

    invoke-static {v1, v2, v3}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 264
    :cond_3
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->overcode:Ljava/lang/String;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 265
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->context:Landroid/content/Context;

    const-string v2, "\u63d0\u793a\u4fe1\u606f"

    const-string v3, "\u91cd\u590d\u5bc6\u7801\u4e3a\u7a7a"

    invoke-static {v1, v2, v3}, Lmyapp/Util;->alertdialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 270
    :cond_4
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private setoncliclistener()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 137
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->closebtn:Landroid/widget/LinearLayout;

    new-instance v1, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;-><init>(Lcom/example/m6wmr/ChangeCodeActivity;Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 138
    iget-object v0, p0, Lcom/example/m6wmr/ChangeCodeActivity;->tv_change_suer:Landroid/widget/TextView;

    new-instance v1, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;

    invoke-direct {v1, p0, v2}, Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;-><init>(Lcom/example/m6wmr/ChangeCodeActivity;Lcom/example/m6wmr/ChangeCodeActivity$mOncliclistener;)V

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 140
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 70
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 71
    const/high16 v1, 0x7f030000

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/ChangeCodeActivity;->setContentView(I)V

    .line 73
    invoke-direct {p0}, Lcom/example/m6wmr/ChangeCodeActivity;->initData()V

    .line 75
    invoke-direct {p0}, Lcom/example/m6wmr/ChangeCodeActivity;->initView()V

    .line 77
    invoke-direct {p0}, Lcom/example/m6wmr/ChangeCodeActivity;->setoncliclistener()V

    .line 78
    invoke-virtual {p0}, Lcom/example/m6wmr/ChangeCodeActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    check-cast v1, Lmyapp/MyApp;

    iput-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->m:Lmyapp/MyApp;

    .line 79
    const/high16 v1, 0x7f0c0000

    invoke-virtual {p0, v1}, Lcom/example/m6wmr/ChangeCodeActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    .line 80
    .local v0, "top":Landroid/widget/LinearLayout;
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v1}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 81
    const v1, 0x7f070026

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 82
    iget-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->tv_change_suer:Landroid/widget/TextView;

    const v2, 0x7f020020

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 85
    :cond_0
    new-instance v1, Lcom/example/m6wmr/ChangeCodeActivity$1;

    invoke-direct {v1, p0}, Lcom/example/m6wmr/ChangeCodeActivity$1;-><init>(Lcom/example/m6wmr/ChangeCodeActivity;)V

    iput-object v1, p0, Lcom/example/m6wmr/ChangeCodeActivity;->h:Landroid/os/Handler;

    .line 121
    return-void
.end method
